package at.fhooe.mc.master.clc.server;

import at.fhooe.mc.master.clc.client.MetricsService;
import at.fhooe.mc.master.clc.server.businesslogic.IMetricsDataAdapter;
import at.fhooe.mc.master.clc.server.businesslogic.MetricsDataAdapter;
import at.fhooe.mc.master.clc.shared.FieldVerifier;
import at.fhooe.mc.master.clc.shared.domain.metrics.IMetricsRequest;
import at.fhooe.mc.master.clc.shared.domain.metrics.IMetricsResponse;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class MetricsServiceImpl extends RemoteServiceServlet implements
		MetricsService
{
	private IMetricsDataAdapter adapter = new MetricsDataAdapter();

	public String greetServer(String input) throws IllegalArgumentException
	{
		return "Not implemented";
	}

	@Override
	public IMetricsResponse getMetricsGraphs(IMetricsRequest request)
	{
		return adapter.requestMetricsData(request);
	}

}
